<%@page pageEncoding="Cp1252" contentType="text/html; charset=Cp1252" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
<title>Alterar senha</title>
<link rel="stylesheet" type="text/css" href="css.css" />
</head>
<body>

<f:view>
		<h:form id="loginForm">
			<h:messages globalOnly="false" errorStyle="color=red;" showDetail="true" showSummary="false"></h:messages>
			
			<h:outputText value="Alterar senha"></h:outputText>
			
			<h:panelGrid columns="2">
				<h:outputText value="Senha atual:"></h:outputText>
				<h:inputSecret value="#{loginBean.senhaAtual}" required="true" requiredMessage="Digite a senha atual" ></h:inputSecret>
				
				<h:outputText value="Nova senha:"></h:outputText>
				<h:inputSecret value="#{loginBean.novaSenha1}" required="true" requiredMessage="Digite a nova senha" ></h:inputSecret>
				
				<h:outputText value="Redigite a nova senha:"></h:outputText>
				<h:inputSecret value="#{loginBean.novaSenha2}" required="true" requiredMessage="Redigite a novasenha" ></h:inputSecret>
			
			</h:panelGrid>			
			
			<h:commandButton value="Salvar" action="#{loginBean.salvarSenha}"></h:commandButton>
			<h:commandButton value="Voltar" action="ALTERACAO_DADOS" immediate="true"></h:commandButton>
		</h:form>
	</f:view>
</body>
</html>
